package com.shop.util;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpSession;

/**
 * 
 * @author wenjuanhenxing
 * @version V1.0 SessionUtil.java 2016-4-25 下午5:20:54
 */
public class SessionUtil {
	public static HttpSession getSession(HttpServletRequest request) {
		return request.getSession();
	}

	public static void setSession(HttpServletRequest request, String key,
			Object value) {
		getSession(request).setAttribute(key, value);
	}
}
